package prototype;

public class Circle implements Shape {

    private int radius;

    public void setRadius(int radius) {
        this.radius = radius;
    }

    @Override
    public Object clone() {
        Circle clone = null;
        try {
            clone = (Circle) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return clone;
    }

    @Override
    public void draw() {
        System.out.println("Draw a circle, radius is " + radius + ".");
    }
}
